<!-- 自定义配置 -->
<template>
    <div>
        <el-collapse accordion>
            <el-collapse-item title="布局设置">
                <el-form-item label="布局行数">
                    <avue-input-number v-model="main.activeOption.grid.rowNum">
                    </avue-input-number>
                </el-form-item>
                <el-form-item label="最小行高度">
                    <avue-input-number
                        v-model="main.activeOption.grid.minRowHeight"
                    >
                    </avue-input-number>
                </el-form-item>
                <el-form-item label="最大行高度">
                    <avue-input-number
                        v-model="main.activeOption.grid.maxRowHeight"
                    >
                    </avue-input-number>
                </el-form-item>
                <el-form-item label="最小列宽度">
                    <avue-input-number
                        v-model="main.activeOption.grid.minColumnWidth"
                    >
                    </avue-input-number>
                </el-form-item>
                <el-form-item label="最大列宽度">
                    <avue-input-number
                        v-model="main.activeOption.grid.maxColumnWidth"
                    >
                    </avue-input-number>
                </el-form-item>
                <el-form-item label="布局间距">
                    <avue-input-number v-model="main.activeOption.grid.gap">
                    </avue-input-number>
                </el-form-item>
            </el-collapse-item>
            <el-collapse-item title="工序标题设置">
                <el-form-item label="高度">
                    <avue-input-number
                        v-model="main.activeOption.routeNameTitle.height"
                    ></avue-input-number>
                </el-form-item>
                <el-form-item label="字体间距">
                    <avue-input-number
                        v-model="main.activeOption.routeNameTitle.split"
                    ></avue-input-number>
                </el-form-item>
                <el-form-item label="字体类型">
                    <avue-select
                        filterable
                        allow-create
                        v-model="main.activeOption.routeNameTitle.fontFamily"
                        :dic="dicOption.fontFamily"
                    ></avue-select>
                </el-form-item>
                <el-form-item label="字体大小">
                    <avue-input-number
                        v-model="main.activeOption.routeNameTitle.fontSize"
                        :max="200"
                    ></avue-input-number>
                </el-form-item>
                <el-form-item label="字体颜色">
                    <avue-input-color
                        v-model="main.activeOption.routeNameTitle.color"
                    ></avue-input-color>
                </el-form-item>
                <el-form-item label="字体行高">
                    <avue-input-number
                        v-model="main.activeOption.routeNameTitle.lineHeight"
                    ></avue-input-number>
                </el-form-item>
                <el-form-item label="字体背景">
                    <avue-input-color
                        v-model="
                            main.activeOption.routeNameTitle.backgroundColor
                        "
                    ></avue-input-color>
                </el-form-item>
                <el-form-item label="文字粗细">
                    <avue-select
                        v-model="main.activeOption.routeNameTitle.fontWeight"
                        :dic="dicOption.fontWeight"
                    >
                    </avue-select>
                </el-form-item>
                <el-form-item label="对齐方式">
                    <avue-select
                        v-model="main.activeOption.routeNameTitle.textAlign"
                        :dic="dicOption.textAlign"
                    >
                    </avue-select>
                </el-form-item>
            </el-collapse-item>
            <el-collapse-item title="饼图设置">
                <el-form-item label="饼图半径">
                    <avue-input-number
                        v-model="main.activeOption.pieChart.radius"
                        :max="200"
                    ></avue-input-number>
                </el-form-item>
            </el-collapse-item>
            <el-collapse-item title="滚动设置">
                <el-form-item label="滚动方向">
                    <avue-select
                        filterable
                        allow-create
                        v-model="main.activeOption.direction"
                        :dic="dicOption.scrollDirection"
                    ></avue-select>
                </el-form-item>
                <el-form-item label="滚动速度">
                    <avue-input-number
                        v-model="main.activeOption.scrollamount"
                        :min="0"
                    >
                    </avue-input-number>
                </el-form-item>
                <el-form-item label="悬停是否停止">
                    <avue-switch
                        v-model="main.activeOption.hoverStop"
                    ></avue-switch>
                </el-form-item>
                <el-form-item label="单步停止时间">
                    <avue-input-number
                        v-model="main.activeOption.waitTime"
                    ></avue-input-number>
                </el-form-item>
                <el-form-item label="单步滚动距离">
                    <avue-input-number
                        v-model="main.activeOption.singleScrollDistance"
                        :min="0"
                    >
                    </avue-input-number>
                </el-form-item>
                <el-form-item label="开始滚动数量">
                    <avue-input-number
                        v-model="main.activeOption.limitMoveNum"
                        :min="0"
                    >
                    </avue-input-number>
                </el-form-item>
            </el-collapse-item>
        </el-collapse>
    </div>
</template>

<script>
import { dicOption } from "@/option/config";
export default {
    name: "productRoute",
    inject: ["main", "contain"],
    components: {},
    data() {
        return {
            dicOption: dicOption
        };
    },
    methods: {}
};
</script>

<style lang="scss" scoped>
.borderImg {
    height: 100px;
    object-fit: contain;
}
</style>
